<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script type="text/javascript">
	$(function() {
		validReg("updateForm");
		$('#updateForm').on('submit', function () {
            validateCallback(this, realuser.update);
        });
	});
</script>
<div id="page-content" class="page-content">

	<div class="page-content-wrapper">
		<div class="page-content">
			<!--content-->
			<div class="containerTop">
				<a href="javascript:;" class="a-back" onclick="menuUrl('realUser/view', 'realuser:page');"><span class="icon-back"></span></a>
				<span>修改真实用户</span>
			</div>

			<div class="panel charger">
				<form id="updateForm" class="form-horizontal" role="form">
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>用户姓名：</label>
						<div class="col-sm-10 ">
							<div class="pr">
								<input type="text" name="userName" class="form-control" disabled="disabled"
									placeholder="请输入用户姓名" required data-bv-notempty
									value="${result.data.userName }" data-bv-regexp="true" data-bv-regexp-message="请输入1-16个中文、英文字母或数字" pattern="^[A-Za-z0-9\u4E00-\u9FA5 \,]{1,16}$">
							</div>
						</div>
					</div>
					<input type="hidden" name="id" class="form-control"
						value="${result.data.id }">
					
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>登录名：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="text" name="account"  id="account" class="form-control" disabled="disabled"
									placeholder="请输入登录名" required data-bv-notempty
									value="${result.data.account }" >
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>密码：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="password" name="userPwd"  id="userPwd" class="form-control" value="${result.data.userPwd}" >
							</div>
						</div>
					</div>
					<input type="hidden" id="corpId" name="corpId" class="form-control" value = "${userModel.corpId }">

					<div class="form-group">
						<label for="lastname" class="col-sm-2 control-label"><span
							class="col_red">*</span>用户类型：</label>
						<div class="col-sm-10">
							<select class="form-control input-sm"  required data-bv-notempty id="userType"name="userType">
								<option value="">选择用户类型</option>
							    <option value="1" <c:if test="${result.data.userType eq '1'}">selected="selected"</c:if> >统一柜台查询用户</option>
								<option value="2" <c:if test="${result.data.userType eq '2'}">selected="selected"</c:if> >自助查询机用户</option>

							</select> 
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>办公电话：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="text" name="officePhone" class="form-control"
									placeholder="请输入办公电话" required data-bv-notempty
									value="${result.data.officePhone}" data-bv-phone="true" data-bv-phone-country="CN" data-bv-phone-message="例如：0769-12345678">
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">手机号码：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="text" name="phone" class="form-control"
									placeholder="请输入手机号码" value="${result.data.phone}" data-bv-phone="true"  data-bv-phone-country="CN" data-bv-phone-message="例如：13999999999">
							</div>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">备注：</label>
						<div class="col-sm-10">
							<!--<input type="text" class="form-control" placeholder="请输入办公电话">-->
							<textarea class="form-control" name="note" rows="3" data-bv-stringlength-max="500"  data-bv-stringlength="true">${result.data.note}</textarea>
						</div>
					</div>
					<div class="text-center opareBtm">


						<button type="submit" class="a-btn1">确定</button>
						<button type="button"
							onclick="menuUrl('realUser/view', 'realuser:page');"
							class="a-btn1 grey">返回</button>

					</div>

				</form>
			</div>

			<!--end content-->
			<div class="clearfix"></div>
		</div>
	</div>

	<div class="clearfix"></div>
</div>